import Vue from "vue";
import VueRouter from "vue-router";
import Login from "../components/login.vue";
Vue.use(VueRouter);

const routes = [
  // {
  //   path: "/",
  //   // name: 'Login',
  //   // component: Dashboard,
  //   component: Login,
  // },
  {
    path: "/first",
    name: "首页",
    component: () => import("../views/first.vue"),
  },
  {
    path: "/once",
    name: "导航",
    component: () => import("../views/once.vue"),
  },
  // {
  //   path: "/",
  //   name: "导航",
  //   component: () => import("../views/diyi.vue"),
  // },
  {
    path: "/",
    name: "导航",
    component: () => import("../views/dier.vue"),
  },
  {
    path: "/disan",
    name: "导航",
    component: () => import("../views/disan.vue"),
  },
  {
    path: "/one",
    name: "one",
    component: () => import("../views/one/onemain.vue"),
    // redirect: "/onemain",
    meta: { title: "项目一" },
    children: [
      {
        path: "/one1",
        name: "one1",
        component: () => import("../views/one/one1.vue"),
        meta: { title: "项目一第一个" },
      },
    ],
  },
  {
    path: "/two",
    name: "two",
    component: () => import("../views/two/twomain.vue"),
    meta: { title: "项目二" },
    children: [
      {
        path: "/daohang1",
        name: "daohang1",
        component: () => import("../views/two/daohang1.vue"),
        meta: { title: "导航一" },
        children: [
          {
            path: "/two1",
            name: "two1",
            component: () => import("../views/two/two1.vue"),
            meta: { title: "项目二第一个" },
          },
        ],
      },
    ],
  },
  {
    path: "/three",
    name: "three",
    component: () => import("../views/three/threemain.vue"),
  },
  {
    path: "/four",
    name: "four",
    component: () => import("../views/four/fourmain.vue"),
  },
  {
    path: "/five",
    name: "five",
    component: () => import("../views/five/fivemain.vue"),
  },
  {
    path: "/six",
    name: "six",
    component: () => import("../views/six/sixmain.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
